<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue</title>
</head>
<script src="vue.js"></script>
<body>

    <div id="app">
        <!--capture 捕获-->
        <div @click.self="box" :style="{border:'1px solid red'}">
            <a href="www.dragonjun.com" @click.stop.prevent="a">点击</a>
        </div>
    </div>

<script>
    var app=new Vue({
        el:'#app',
        data: {

        },
        methods:{
            a(){
                alert('a');
            },
            box(){
              alert('div');
            },


            },


    });

</script>
</body>
</html>